<?php 
	 session_start();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<title>旅游信息管理</title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<link href="css/dialog.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="css/list.css" />

</head>

<body>
<div align="center">
<div>
			<?php
				if(!empty($_GET['error'])){
					echo '<div style="color:red;font-size:15px;margin-left:10px;">'.$_GET['error'].'</div>';
				}
			
			?>			</div>
<?php			
				//加载配置文件
				include 'config.php';
				$link = mysql_connect(HOST,DBUSER,DBPASS) or die('连接失败亲');
				mysql_select_db(DBNAME,$link);
				mysql_set_charset('utf8');
						
				$sql = "SELECT * FROM t_plan  WHERE  id = ".$_GET['id'];
				$result = mysql_query($sql);
				if(!empty($result)&&mysql_num_rows($result)>0){
					while($rows = mysql_fetch_assoc($result)){
				?>	
						<table  class="tablelist">
							<tr >
							<th colspan="2"><?php echo $rows['title'] ?></th>
							</tr>
							<tr>
							<td>地区类别</td>
							<td><?php echo $rows['area_type'] ?></td>
							</tr>
							<tr>
							<td>价格类别</td>
							<td><?php echo $rows['price_type'] ?></td>
							</tr>
							<tr>
							<td>旅游天数</td>
							<td><?php echo $rows['days'] ?></td>
							</tr>
							<tr>
							<td>价格</td>
							<td><?php echo $rows['price'] ?></td>
							</tr>
							<tr>
							<td>出发地</td>
							<td><?php echo $rows['startingpoint'] ?></td>
							</tr>
							<tr>
							<td>交通工具</td>
							<td><?php echo $rows['vehicle'] ?></td>
							</tr>
							<tr>
							<td>预览图</td>
							<td><?php echo '<img width="100" src="../uploadImg/'.$rows['head_pic'].'"/>' ?></td>
							</tr>
							<tr>
							<td>介绍</td>
							<td><?php echo $rows['introduce'] ?></td>
							</tr>
							<tr>
							<td>计划行程</td>
							<td><?php echo $rows['schedule'] ?></td>
							</tr>
							<tr>
							<td>温馨提示</td>
							<td><?php echo $rows['hint'] ?></td>
							</tr>
							<tr>
							<td colspan="2"><form action="bookAddAction.php" method="post">
							<input type="hidden" name="planId" value="<?php echo $rows['id'] ?>"/>
							<input type="submit" value="预定"/></form></td>
							</tr>
						</table>
				<?php	}
					
					
				}
				
				
				if(!empty($result)){
					mysql_free_result($result);					

					}else{
				}
				mysql_close($link);
				
				
				
			?>
</div>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/jquery.XYTipsWindow.min.2.8.js"></script>
<script type="text/javascript" src="js/jquery.orbit.min.js"></script>
</body>
</html>